package kr.kwakyc.puzzle.ranking;

public class RankingRecord {
	
	private String name;
	private int second;
	
	public RankingRecord(){
	}
	
	
	public RankingRecord(String name, int second) {
		this.name = name;
		this.second = second;
	}
	
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getSecond() {
		return second;
	}
	public void setSecond(int second) {
		this.second = second;
	}
	
	public String getRecordWithMMSS(){
		int nMinute = second / 60;
		int nSecond = second % 60;
		
		return String.format("%02d:%02d", nMinute, nSecond);
	}
	
	

}
